package com.ljn.controller;

import com.ljn.core.dto.common.Response;
import com.ljn.core.dto.common.command.QueryBaseCommand;
import com.ljn.core.dto.common.command.projectcommand.QueryProCommand;
import com.ljn.facade.AdminFacade;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.inject.Inject;

/**
 * Created by liujunnan on 2017/11/16.
 */
@Controller
@RequestMapping("/admin")
public class AdminController {

    @Inject
    AdminFacade adminFacade;

    @ResponseBody
    @GetMapping("/show")
    public Response show(QueryProCommand queryProCommand)
    {

        return adminFacade.show(queryProCommand);
    }
    @ResponseBody
    @PostMapping("/review")
    public  Response review(@RequestBody QueryProCommand queryProCommand)
    {
        return adminFacade.review(queryProCommand);
    }

}
